import { h, resolveComponent } from 'vue'
export default [
    {
        path: "/home",
        name: 'home',
        meta: { title: "首页", id: '0' },
        component: () => import("@/views/home/index.vue"),
    },
    {
        path: "/base",
        name: 'base',
        meta: { title: "ThreeJS基础", id: '1' },
        component: { render: () => h(resolveComponent('router-view')) },
        redirect: '/base/baseScene',
        children: [
            {
                path: "/base/baseScene",
                name: 'baseScene',
                meta: { title: "基础场景", id: '1-1' },
                component: () => import("@/views/base/index.vue"),
            },
            {
                path: "/base/animate",
                name: 'animate',
                meta: { title: "动画", id: '1-2' },
                component: () => import("@/views/base/animate.vue"),
            },
            {
                path: "/base/pure",
                name: 'pure',
                meta: { title: "基础无插件", id: '1-3' },
                component: () => import("@/views/base/pure.vue"),
            },
        ]
    },
    {
        path: "/line",
        name: 'line',
        meta: { title: "ThreeJS线绘制相关", id: '2' },
        component: { render: () => h(resolveComponent('router-view')) },
        redirect: '/line/lineIndex',
        children: [
            {
                path: "/line/lineIndex",
                name: 'lineIndex',
                meta: { title: "射线检测坐标点", id: '2-1' },
                component: () => import("@/views/line/index.vue"),
            },
            {
                path: "/line/createStation",
                name: 'createStation',
                meta: { title: "射线生成站点/线路", id: '2-2' },
                component: () => import("@/views/line/createStation.vue"),
            },
            {
                path: "/line/standard",
                name: 'standard',
                meta: { title: "重新整理Vue文件格式", id: '2-3' },
                component: () => import("@/views/line/standard.vue"),
            },
            {
                path: "/line/sLine",
                name: 'sLine',
                meta: { title: "电碳潮流", id: '2-4' },
                component: () => import("@/views/line/sLine.vue"),
            },
            {
                path: "/line/final",
                name: 'final',
                meta: { title: "电碳潮流最终版", id: '2-5' },
                component: () => import("@/views/line/final.vue"),
            },
        ]
    },
    // {
    //     path: "/structure",
    //     name: 'structure',
    //     meta: { title: "ThreeJS面向对象", id: '3' },
    //     component: { render: () => h(resolveComponent('router-view')) },
    //     redirect: '/structure/structureIndex',
    //     children: [
    //         {
    //             path: "/structure/structureIndex",
    //             name: 'structureIndex',
    //             meta: { title: "面向对象集成", id: '3-1' },
    //             component: () => import("@/views/structure/structureIndex.vue"),
    //         },
    //     ]
    // },
    {
        path: "/structureLine",
        name: 'structureLine',
        meta: { title: "ThreeJS面向对象开发", id: '4' },
        component: { render: () => h(resolveComponent('router-view')) },
        redirect: '/structureLine/structureLineIndex',
        children: [
            {
                path: "/structureLine/structureLineIndex",
                name: 'structureLineIndex',
                meta: { title: "开发电碳潮流", id: '4-1' },
                component: () => import("@/views/structureLine/structureLineIndex.vue"),
            },
            {
                path: "/structureLine/mapIndex",
                name: 'mapIndex',
                meta: { title: "开发地图", id: '4-2' },
                component: () => import("@/views/map/mapIndex.vue"),
            },
        ]
    },
    {
        path: "/gsap",
        name: 'gsap',
        meta: { title: "Gsap动画库基础", id: '5' },
        component: () => import("@/views/gsap/index.vue"),
    },
    {
        path: "/gsap-use",
        name: 'gsap-use',
        meta: { title: "Gsap动画库应用", id: '6' },
        component: () => import("@/views/gsap/use.vue"),
    },
    {
        path: "/unocss",
        name: 'unocss',
        meta: { title: "unocss", id: '7' },
        component: () => import("@/views/unocss/index.vue"),
    },
    {
        path: "/yuanshen",
        name: 'yuanshen',
        meta: { title: "原神大地图", id: '8' },
        component: () => import("@/views/yuanshen/map.vue"),
    },
    {
        path: "/markdown",
        name: 'markdown',
        meta: { title: "Markdown渲染器", id: '9' },
        component: () => import("@/views/markdown/preview.vue"),
    },
    {
        path: "/live2d",
        name: 'live2d',
        meta: { title: "live2d", id: '9' },
        component: () => import("@/views/live2d/index.vue"),
    },
    {
        path: "/prototype",
        name: 'prototype',
        meta: { title: "JS相关", id: '10' },
        component: { render: () => h(resolveComponent('router-view')) },
        redirect: '/prototype/prototypeIndex',
        children: [
            {
                path: "/prototype/prototypeIndex",
                name: 'prototypeIndex',
                meta: { title: "原型链", id: '10-1' },
                component: () => import("@/views/js/prototype.vue"),
            },
            {
                path: "/promise/promiseHand",
                name: 'promiseHand',
                meta: { title: "手写promise核心", id: '10-2' },
                component: () => import("@/views/js/promise.vue"),
            },
            {
                path: "/js/cmp",
                name: 'cmp',
                meta: { title: "算法", id: '10-3' },
                component: () => import("@/views/js/cmp.vue"),
            },
          
        ]
    },
    {
        path: "/vue",
        name: 'vue',
        meta: { title: "Vue", id: '11' },
        component: { render: () => h(resolveComponent('router-view')) },
        redirect: '/vue/vueIndex',
        children: [
            {
                path: "/vue/vueIndex",
                name: 'vueIndex',
                meta: { title: "Vue相关", id: '11-1' },
                component: () => import("@/views/Vue/index.vue"),
            },
          
        ]
    },
]